﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XXTUserUI;

namespace MainFrame
{
    public delegate void _displayInfoMain(string message);//在主界面信息显示窗口显示信息委托
    
    public delegate void _addInfoRow(ProductInfo info);//添加测量数据行
    public delegate void _displayRunTimeOnce(long timeUnitMS);//显示运行时间
    public delegate void _displayMeasure(double[] measure,string MaxMin,int isResultOK);//显示测量信息
    public delegate void _displayErrorMain(string message);//在主界面信息显示错误信息

    public delegate void _changeUserID(bool enable);//切换帐户
    public delegate void _changeUserInMain();//主界面更新帐户按钮显示

    public delegate void _loadTips(string tips);//登陆显示
    public class displalyInfo
    {
        public static _displayInfoMain displayInfoMain;
        public static _displayInfoMainBox displayInfoMainBox;
        public static _displayErrorMain displayErrorMain;
        public static _displayRunTimeOnce displayRunTime;//显示运行时间
        public static _addInfoRow addInfoRow;//添加测量数据行
    }

    public class changeUser
    {
        public static _changeUserID changeUserID;
        public static _changeUserInMain changeUserMain;
    }
    public class loadTips
    {
        public static _loadTips loadTipsInLogin;
    }
}
